package com.song.tools.songtest.service;

import com.song.tools.mvc.service.QueryService;
import com.song.tools.mvc.service.SaveService;
import com.song.tools.mvc.validator.ValidationResult;
import com.song.tools.mvc.validator.ValidatorChain;
import com.song.tools.songtest.beans.request.SystemLogQueryRequest;
import com.song.tools.songtest.beans.request.SystemLogSaveRequest;
import com.song.tools.songtest.beans.response.SystemLogQueryResponse;
import com.song.tools.songtest.beans.response.SystemLogSaveResponse;

/**
 * <p>
 * 系统日志表 服务类
 * </p>
 *
 * @author song tools
 * @since 2024-07-16
 */
public interface SystemLogService extends QueryService<SystemLogQueryRequest, SystemLogQueryResponse>,
        SaveService<SystemLogSaveRequest, SystemLogSaveResponse> {

    @Override
    default ValidationResult validateOnSave(SystemLogSaveRequest systemLogSaveRequest) {
        ValidatorChain validatorChain = new ValidatorChain();

        // save时校验参数
        return validatorChain.validate();
    }
}

